import request from '@/utils/request'

export function getMaterialList(data) {
  return request({
    url: '/goodsInfo/find',
    method: 'post',
    data
  })
}
export function saveMaterialSave(data) {
  return request({
    url: '/goodsInfo/save',
    method: 'post',
    data
  })
}
export function delMaterial(id) {
  return request({
    url: `/goodsInfo/del/${id}`,
    method: 'post',
  })
}
export function delBatchMaterial(ids) {
  return request({
    url: `/goodsInfo/delBatch?ids=${ids}`,
    method: 'get',
  })
}

export function getMaterialTypeList(data) {
    return request({
      url: '/goodsType/find',
      method: 'post',
      data
    })
  }
  export function saveMaterialTypeSave(data) {
    return request({
      url: '/goodsType/save',
      method: 'post',
      data
    })
  }
  export function delMaterialType(id) {
    return request({
      url: `/goodsType/del/${id}`,
      method: 'post',
    })
  }
  